﻿#region Copyright RenGuiYou. All rights reserved.
//=====================================================
// PandoraFrameWork
// Author:      RenGuiyou
// Feedback: 	mailto:750539605@qq.com
//=====================================================
#endregion

using UnityEditor;
using UnityEngine;

namespace PandoraEditor.Window
{
    public class AssetsBuildCategory : ConfigCategory
    {
        public override void OnInit()
        {
            name = "资源打包";
        }

        public override void OnDrawAction()
        {
            var setting = BuildSetting.AssetsBuildSetting;
            EditorGUILayout.Space();
            EditorGUILayout.LabelField("打包配置", EditorStyles.boldLabel);
            GUILayout.BeginVertical("box");
            {
                setting.build_shader_variant = EditorGUILayout.Toggle("Shader Variant", setting.build_shader_variant);
                setting.build_bm_font = EditorGUILayout.Toggle("BM Font", setting.build_bm_font);
                setting.build_sound = EditorGUILayout.Toggle("Sound", setting.build_sound);
                setting.build_voice = EditorGUILayout.Toggle("Voice", setting.build_voice);
                setting.build_music = EditorGUILayout.Toggle("Music", setting.build_music);
                setting.build_video = EditorGUILayout.Toggle("Video", setting.build_video);
                setting.single_packer = EditorGUILayout.TextField("文件夹打成一个bundle", setting.single_packer);
                setting.multi_catalog_packer = EditorGUILayout.TextField("每个子文件夹一个bundle", setting.multi_catalog_packer);
                setting.multi_file_packer = EditorGUILayout.TextField("每个文件一个bundle", setting.multi_file_packer);
                setting.copy_folder = EditorGUILayout.TextField("额外拷贝文件夹", setting.copy_folder);
            }
            GUILayout.EndVertical();
        }
    }
}